package pl.sind.http;

import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;

public interface HttpRequest<T> {

	T unwrap();

	void setRequestHeader(String contentType,
			String applicationXWwwFormUrlencoded);

	OutputStream getOutputStream() throws HttpRequestException;
	
	InputStream getInputStream();

	void addRequestHeaders(HttpHeader[] authHeaders);

	void addRequestHeaders(String name, String value);

}
